package com.zd.login.service;

import com.zd.model.Teacher;
import com.zd.login.dao.TeacherDao;

/*
* 处理业务
* */
public class LoginService {
   public Teacher checkLogin(String username, String password){
        //进行数据查询，验证，用户
       TeacherDao teacherDao=new TeacherDao();
       Teacher teacher = teacherDao.queryTeacher(username, password);
       if(teacher!=null){
           return teacher;
       }else {
           return  null;
       }
   }
}
